<p class="Head1"><help:link Id="66473">StrComp Function [Runtime]</help:link></p>
<p class="Paragraph">Compares two strings and returns whether the strings are equal, whether one of the strings is an empty string, or whether one string is longer than the other.</p>
<p class="Paragraph">Text1: Any string expression to be compared with the one returned after that.</p>
<p class="Paragraph">Text2: Any string expression to be compared with the one returned before.</p>
<p class="Paragraph">Compare: This optional parameter sets the comparison method. If Compare = 0 the string comparison is case-sensitive. If Compare = 1 no difference is made between upper and lower case letters.</p>
<p class="Paragraph">Use this function to compare two strings with each other according to the conventions determined by the argument Compare.</p>
<p class="Paragraph">The possible return values are -1, 0, 1:</p>
<p class="P2">Return value</p>
<p class="Paragraph">-1 : Text1 > Text2 (e.g., "Time" and "Thyme").</p>
<p class="Paragraph">0 : Both strings are identical (e.g., "Time" and "Time").</p>
<p class="Paragraph">1 : Text1 < Text2 (e.g., "Thyme" and "Time").</p>
<p class="Paragraph">Null : One of the strings is an empty string (e.g., "Peter" and "").</p>